package org.ru.mse10.cvis.dto;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlTransient;

/**
 * The Class BaseDTO.
 * 
 * @param <X>
 *            the generic type
 */
public class BaseDTO<X> {

	/** The total number of rows. */
	private Integer totalNumberOfRows;

	/** The first result. */
	private Integer firstResult;

	/** The max results. */
	private Integer maxResults;

	/** The result. */
	private List<X> result = new ArrayList<X>();

	/**
	 * Gets the result.
	 * 
	 * @return the result
	 */
	@XmlTransient
	public List<X> getResult() {
		return result;
	}

	/**
	 * Sets the result.
	 * 
	 * @param result
	 *            the new result
	 */
	public void setResult(List<X> result) {
		this.result = result;
	}

	/**
	 * Gets the first result.
	 * 
	 * @return the firstResult
	 */
	public Integer getFirstResult() {
		return firstResult;
	}

	/**
	 * Sets the first result.
	 * 
	 * @param firstResult
	 *            the firstResult to set
	 */
	public void setFirstResult(Integer firstResult) {
		this.firstResult = firstResult;
	}

	/**
	 * Gets the max results.
	 * 
	 * @return the maxResults
	 */
	public Integer getMaxResults() {
		return maxResults;
	}

	/**
	 * Sets the max results.
	 * 
	 * @param maxResults
	 *            the maxResults to set
	 */
	public void setMaxResults(Integer maxResults) {
		this.maxResults = maxResults;
	}

	/**
	 * Gets the total number of rows.
	 * 
	 * @return the totalNumberOfRows
	 */
	public Integer getTotalNumberOfRows() {
		return totalNumberOfRows;
	}

	/**
	 * Sets the total number of rows.
	 * 
	 * @param totalNumberOfRows
	 *            the totalNumberOfRows to set
	 */
	public void setTotalNumberOfRows(Integer totalNumberOfRows) {
		this.totalNumberOfRows = totalNumberOfRows;
	}
}
